package com.meeno.controller;

import com.meeno.entity.ZbEarTag;
import com.meeno.repository.ZbEarTagRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @Auther: YYF
 * @Date: 2019/8/28 09:38
 */
@RestController
public class TestController {

    @Autowired
    private ZbEarTagRepository zbEarTagRepository;

    @RequestMapping("/test")
    public List Tets(){
        List<ZbEarTag> list = zbEarTagRepository.findAll();
        return list;
    }

    @RequestMapping("/test2")
    public Object TetsR(){
       return null;
    }

}
